$OpenBSD: patch-Tools_mangleme_mangle_cgi_c,v 1.1.1.1 2016/12/25 14:13:13 zhuk Exp $
--- Tools/mangleme/mangle.cgi.c.orig	Fri Dec 26 02:50:45 2014
+++ Tools/mangleme/mangle.cgi.c	Fri Dec 26 02:51:04 2014
@@ -18,7 +18,7 @@
 
 #include "tags.h"
 
-#define R(x) (rand() % (x))
+#define R(x) arc4random_uniform((x))
 
 #define MAXTCOUNT 100
 #define MAXPCOUNT 20
